<head>
	<link rel="stylesheet" type="text/css" href="profile_inner.css" />
</head>

<img src="/img/icons/back.gif"><a href="frame.php?page=profile"> Return to profile </a>

<div class="padded_text">

<div class="head">View Users</div>

<p />This is a list of everyone who is currently a member of The Pin Project.
<br />Click on a user name to view that member's profile.

<p /><div class="subhead">Current Users</div>

<div id="dynamic_content">
	<?php include "gen_users.php"; ?>
</div>

<script type="text/javascript">

	<?php include "../common/PinAJAX.php"; ?>

	function ShowMessage(message, choiceType, userName)
	{
		destObj = document.getElementById("message_text")
		switch (message)
		{
			case 'delete':
				destObj.innerHTML = "<i>Stop! Are you sure you wish to 	<b><u>delete</u></b> the user '" + userName + "'?</i>"
				+ "<p>Warning: This will delete all the user's files and settings, and remove all references to their work from the site!";
				break;
		}
		
		destObj = document.getElementById("message_choices")
		switch (choiceType)
		{
			case 0:
				destObj.innerHTML = '<a href="javascript:MessageResponse(1);">Ok</a>';
				break;
			case 1:
				destObj.innerHTML = '<a href="/do_action.php?actionname=deleteuser&username=' + userName + '" onclick="MessageResponse(1);">Yes</a> | <a href="#" onclick="MessageResponse(0);">No</a>';
				break;
		}
		
		destObj = document.getElementById("context_message");
		destObj.style.display = "block";
	}
	
	function MessageResponse(responseID)
	{
		destObj = document.getElementById("context_message");
		destObj.style.display = "none";
	}
	
</script>
